# Scrapy settings for getShipVideo project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
#     https://docs.scrapy.org/en/latest/topics/settings.html
#     https://docs.scrapy.org/en/latest/topics/downloader-middleware.html
#     https://docs.scrapy.org/en/latest/topics/spider-middleware.html
LOG_LEVEL="WARNING"
BOT_NAME = "getShipVideo"

FILES_STORE = r'Z:\Code_Pile\Programs\DataProcess\Data'  # 保存视频文件的文件夹
SPIDER_MODULES = ["getShipVideo.spiders"]
NEWSPIDER_MODULE = "getShipVideo.spiders"


# Crawl responsibly by identifying yourself (and your website) on the user-agent
# USER_AGENT = "getShipVideo (+http://www.yourdomain.com)"

# Obey robots.txt rules
ROBOTSTXT_OBEY = False

# Configure maximum concurrent requests performed by Scrapy (default: 16)
#CONCURRENT_REQUESTS = 32

# Configure a delay for requests for the same website (default: 0)
# See https://docs.scrapy.org/en/latest/topics/settings.html#download-delay
# See also autothrottle settings and docs
DOWNLOAD_DELAY = 3
# The download delay setting will honor only one of:
#CONCURRENT_REQUESTS_PER_DOMAIN = 16
#CONCURRENT_REQUESTS_PER_IP = 16

# Disable cookies (enabled by default)
COOKIES_ENABLED = False

# Disable Telnet Console (enabled by default)
#TELNETCONSOLE_ENABLED = False

# Override the default request headers:
DEFAULT_REQUEST_HEADERS = {
   'Accept': "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
   'Accept-Language': 'en',
   'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/130.0.0.0 Safari/537.36 Edg/130.0.0.0',
   'cookie': '''uuid=420d21e3-61c8-4aaf-ac8e-97aaa7c131fb; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%22e9053a6b844599dc1a5c9fe1b09245075%22%2C%22first_id%22%3A%221937babae61867-0840af4d53a5d2-4c657b58-929640-1937babae6213bb%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%221937babae61867-0840af4d53a5d2-4c657b58-929640-1937babae6213bb%22%7D; api_token=ST-929-c58253c5541f3b787c9c9ec5ba6808734; Hm_up_5fd2e010217c332a79f6f3c527df12e9=%7B%22uuid%22%3A%7B%22value%22%3A%22420d21e3-61c8-4aaf-ac8e-97aaa7c131fb%22%2C%22scope%22%3A1%7D%2C%22uid_%22%3A%7B%22value%22%3A%22e9053a6b844599dc1a5c9fe1b09245075%22%2C%22scope%22%3A1%7D%2C%22userId%22%3A%7B%22value%22%3A%22e9053a6b844599dc1a5c9fe1b09245075%22%2C%22scope%22%3A1%7D%7D; vfMode=0; filterToggle=1; Hm_lvt_5fd2e010217c332a79f6f3c527df12e9=1732946671,1732950225,1733295807; HMACCOUNT=313B7F54527A3DF3; FZ_STROAGE.vcg.com=eyJTRUVTSU9OSUQiOiI5M2M5N2M2YTBjZDM3YTg0IiwiU0VFU0lPTkRBVEUiOjE3MzMyOTk2MjY3Njl9; fingerprint=dd8a78aaeee13a80c72676ebc1a98ef1; ARK_ID=undefined; _fp_=eyJpcCI6IjE0MS4xMS40Ni4yMCIsImZwIjoiZGQ4YTc4YWFlZWUxM2E4MGM3MjY3NmViYzFhOThlZjEiLCJocyI6IiQyYSQwOCRqS3hXWVdpQWNIYjJrMzI2dXBzQ0llU2hZUnJweS5JREJFVmtrVFlVeDBJMmRaaFI5b1drLiJ9; clientIp=120.227.57.123; acw_tc=276082a417333049206545036e993f2e2f5b3de017ec3632d9f888b6d014e0; Hm_lpvt_5fd2e010217c332a79f6f3c527df12e9=1733306133; ssxmod_itna=eqUhDvxmxxkDXWDHD0YaX47Kt6=nK8Y0tYRDBkDAI5DZDiqAPGhDCSrKGIqfY3PLAj8P3h8RAixPWe8ADawNrP++EX4NDCPGnDBIKQ+zDYYkDt4DTD34DYDihQGIDieDF8NvzkDbxYQDYqGRDB=XzqDfmqGW8MQDmuNDGqKUD7QDIqt3DDN3/m4rbArSBSrx6eDSnGUxKA=DjqTD/8pOEA=oEcF30wtF11rWtwi4xBQD7T09DYoXjW4Bnk2YnxPPngxsWBG534mxtDGCnh4=8YkP8iq1YieGlFZGzHj5tOD6xDfzzYk=eD==; ssxmod_itna2=eqUhDvxmxxkDXWDHD0YaX47Kt6=nK8Y0tYD8MmDGK33D/DfOe7pIcq8FyHr8GFFjRFwz2DzYHAH3AGmD==0KmdAvA0nDm0DjXj4CaqX3DfxSbAV7B1Cin2SxjMfxQE6fjnH85W0kiZc4Gigy7MPez5f2dtxitBPHHS6R18E2xy1YQ3BKqtErQ+IyHqBmsrE0HwO3GgQ0i8A373Do+56+69EiO=CgWPSBh5WnNyiqXB6bC/+mbTxm47+jwt/aQqZq5D3IOAxu8pPthD1WqFso89x4=57LfbLwUXDa6zgWO2QLBWPcSUrGwjvxDEs74XnNwZ6zApsGw97IsoquDfcP=Z75vlIW1=G7dKE6R2r=bv+A2v15qSN/DmqrDgjD5pQVixL1bHrrDgq5+2XAGfj4cguj66pemfDd19psj0GYtWU2GYi0r0gnWyAeMlww0W13btWfXtLp30HUnl1KIibXj=ixw7iRUjvu=v72EgAGFnp7i+XAhhYWa3Y7j+KRtTPwTDG2niq+x2FvTCQ/W+whCNS+wMbQhd=QPPWaL02iF0gG444=1tDEMmwGb4D08DijjCt/8FEYD==='''

}

# Enable or disable spider middlewares
# See https://docs.scrapy.org/en/latest/topics/spider-middleware.html
#SPIDER_MIDDLEWARES = {
#    "getShipVideo.middlewares.GetshipvideoSpiderMiddleware": 543,
#}

# Enable or disable downloader middlewares
# See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html
#DOWNLOADER_MIDDLEWARES = {
#    "getShipVideo.middlewares.GetshipvideoDownloaderMiddleware": 543,
#}

# Enable or disable extensions
# See https://docs.scrapy.org/en/latest/topics/extensions.html
#EXTENSIONS = {
#    "scrapy.extensions.telnet.TelnetConsole": None,
#}

# Configure item pipelines
# See https://docs.scrapy.org/en/latest/topics/item-pipeline.html
ITEM_PIPELINES = {
   "getShipVideo.pipelines.GetshipvideoPipeline": 300,
}

# Enable and configure the AutoThrottle extension (disabled by default)
# See https://docs.scrapy.org/en/latest/topics/autothrottle.html
#AUTOTHROTTLE_ENABLED = True
# The initial download delay
#AUTOTHROTTLE_START_DELAY = 5
# The maximum download delay to be set in case of high latencies
#AUTOTHROTTLE_MAX_DELAY = 60
# The average number of requests Scrapy should be sending in parallel to
# each remote server
#AUTOTHROTTLE_TARGET_CONCURRENCY = 1.0
# Enable showing throttling stats for every response received:
#AUTOTHROTTLE_DEBUG = False

# Enable and configure HTTP caching (disabled by default)
# See https://docs.scrapy.org/en/latest/topics/downloader-middleware.html#httpcache-middleware-settings
#HTTPCACHE_ENABLED = True
#HTTPCACHE_EXPIRATION_SECS = 0
#HTTPCACHE_DIR = "httpcache"
#HTTPCACHE_IGNORE_HTTP_CODES = []
#HTTPCACHE_STORAGE = "scrapy.extensions.httpcache.FilesystemCacheStorage"

# Set settings whose default value is deprecated to a future-proof value
REQUEST_FINGERPRINTER_IMPLEMENTATION = "2.7"
# TWISTED_REACTOR = "twisted.internet.asyncioreactor.AsyncioSelectorReactor"
FEED_EXPORT_ENCODING = "utf-8"
